<template>
  <div class="index">
    <transition name="fade" mode="out-in">
      <router-view></router-view>
    </transition>
    <div class="tabbar">
      <router-link to="/index/home">首页</router-link>
      <router-link to="/index/baobao">爆爆团</router-link>
      <router-link to="/index/order">订单</router-link>
      <router-link to="/index/mine">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      arr:[]
    }
  },
  mounted(){
    
  }
}
</script>

<style lang="scss" scoped>
.tabbar{
  width: 95%;
  height: 40px;
  position: fixed;
  text-align: center;
  padding: 10px;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #f5f5f5;
  box-shadow: 0px -5px 10px #999;
  align-items: center;
  background: #f5f5f5;
}
.tabbar a{
  color: black;
  text-decoration: none;
}
.tabbar a:hover{
  color: orangered;
  font-size: 20px;
}
.fade-enter {
  opacity: 0;
}
.fade-enter-active {
  transition: all .3s;
}
.fade-enter-to {
  opacity: 1;
}

.fade-leave {
  opacity: 1;
}
.fade-leave-active {
  transition: all .3s;
}
.fade-leave-to {
  opacity: 0;
}
</style>
